import { Body, Controller, ParseIntPipe, Post, Req } from '@nestjs/common';
import { WaterBillsService } from './water-bills.service';
import { ResponseUtilService } from '@app/response-util';

@Controller('waterBills')
export class WaterBillsController {
    constructor(
        private readonly service:WaterBillsService,
    ) {}

    @Post('page')
    async page(@Body() dto:Pagination, @Req() { userId }) {
        let rows = await this.service.page(dto, userId)
        return ResponseUtilService.successRes(rows)
    }
}
